<?php
include_once("../../../common/module/checkA.php");
include_once("../../../../config.php");
$plate=select_one_line_all_items($table_Prefix."plate","mid = 'renewal'");
?>


<?
//用来判断当前系统属于什么板块
$system_part = $plate['mid'];
?>



<?php
$new_detail_nid=$_GET['nid'];


//首先看看，这个项目有无财务信息。财务信息需要删除了才能继续删除项目。
$table_suffix="renewal_log";
$table=$table_Prefix.$table_suffix;
$_log_in_case=select_one_line_all_items($table,"parent_nid = '".$_GET['nid']."'");

if($_log_in_case['nid']<=0)
{

    //设置需要搜索的表格的前缀后缀
    $table_suffix="renewal";
    $table=$table_Prefix.$table_suffix;
//设置需要搜索的表格的前缀后缀


    $sql = " DELETE FROM $table WHERE nid=$new_detail_nid ";
    $query=mysql_query($sql) or die  ("error:".mysql_error());




    echo 1;//表示成功
}
else
{
    echo "含未删除log信息。";
}




?>


